package cn.ekgc.bmdsad.day7;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MyMember {
    private String name;
    private String cardId;
    private String pwd;
    private int score;
    private Date date;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");


    @Override
    public String toString() {
        String d = sdf.format(date);
        return name+"\t"+cardId+"\t"+d;
    }

    public MyMember(String name, String cardId, String pwd, int score, Date date) {
        this.name = name;
        this.cardId = cardId;
        this.pwd = pwd;
        this.score = score;
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
